package com.User;

import com.google.gson.annotations.Expose;

public class User {

	@Override
	public String toString() {
		return "User [userID=" + userID + ", loginName=" + loginName + ", password=" + password + ", userIdentity="
				+ userIdentity + ", phone=" + phone + "]";
	}
	// 用户全局id 不需要序列化和反序列化
	@Expose(serialize = false, deserialize = false)
	private int userID;
	// 用户登录名
	 @Expose()
	private String loginName;
	// 用户密码
	//TODO: 加密
	 @Expose()
	private String password;
	// 用户身份 1居民 2回收商 3快递员
	 @Expose()
	private int userIdentity;
	
	 private String phone;
	
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public int getUserID() {
		return userID;
	}
	public void setUserID(int userID) {
		this.userID = userID;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getUserIdentity() {
		return userIdentity;
	}
	public void setUserIdentity(int userIdentity) {
		this.userIdentity = userIdentity;
	}
	
	
}
